package nhl_stats;

import java.util.ArrayList;

/**
 * TODO Turn these into ArrayLists so that we can hold all the data
 */
public class Player {
    
    private ArrayList<data> ytyData;
    private String fname,lname;
    
    
    public Player(String fname, String lname, String team, String position, int games, int goals, int assists, int points, int PM, int SOG,
                    double TOIPG, int PIM, double PPTOIPG, int PPG, int SHG, int year) {
        this.fname = fname;
        this.lname = lname;
        ytyData = new ArrayList<>();
        
        ytyData.add(new data(fname, lname, team, position, games, goals, assists, points, PM, SOG, TOIPG, PIM, PPTOIPG, PPG, SHG, year));
    }
    
    public Player(data datain) {
        ytyData = new ArrayList<>();
        fname = datain.getfName();
        lname = datain.getlName();
        ytyData.add(datain);
    }
    
    public data getYear(int year) {
        data playerdata;
        
        
        return null;
    }
    
    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    void addYear(data tempdata) {
        ytyData.add(tempdata);
    }
    
    
}
